package com.sourcespro.mybatis.dao;

import com.sourcespro.mybatis.crudparams.PageInfo;
import com.sourcespro.mybatis.entity.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 分类 Mapper
 *
 * @author 张浩伟
 * @date 2018/07/07
 */
@Mapper
public interface CategoryMapper {
    
    int deleteByPrimaryKey(Integer id);

    int insert(Category record);

    Category selectByPrimaryKey(Integer id);

    List<Category> selectAll(PageInfo pageInfo);

    int batchInsert(List<Category> list);

    List<Category> batchQueryByIds(List<Integer> ids);

    List<Category> batchQueryByUuids(List<String> uuids);

    int updateByPrimaryKey(Category record);

    Category findByUuid(String uuid);

    int selectCount(PageInfo pageInfo);

    int batchDeleteById(List<Integer> ids);

    int batchDeleteByUuid(List<String> uuids);

    int deleteByUuid(String uuid);
}